cmake_minimum_required(VERSION 3.21)
project(Idioms_Solitaire)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

set(CMAKE_PREFIX_PATH "/Users/dai/Qt/6.2.0/macos/lib/cmake")

find_package(Qt6 COMPONENTS
        Core
        Gui
        Widgets
        REQUIRED)

add_executable(Idioms_Solitaire main.cpp)
target_link_libraries(Idioms_Solitaire
        Qt::Core
        Qt::Gui
        Qt::Widgets
        )

add_subdirectory(test)